package src.main.java.org.oop.encapsulation;

public class Student {
    private double score;
//    体现了封装的思想
    public void setScore(double score) {
        this.score = score;
    }

    public double getScore() {
        return score;
    }
    public void printPass(){
        System.out.println(score>=60?"合格":"不合格");
    }
}
